package billwood

class WoodBill {
    String namePerson
    String lastNamePerson
    String addressPerson
    BigDecimal quantyCherry
    BigDecimal quantyCurlyMaple
    BigDecimal quantyGenuineMahogany
    BigDecimal quantyWenge
    BigDecimal quantyWhiteOak
    BigDecimal quantySawdust
    static constraints = {
        namePerson(blank:false, maxSize:20)
        lastNamePerson(blank:false, maxSize:20)
        addressPerson(blank:false, maxSize:40)
        quantyCherry(max:1000.0)
        quantyCurlyMaple(max:1000.0)
        quantyGenuineMahogany(max:1000.0)
        quantyWenge(max:1000.0)
        quantyWhiteOak(max:1000.0)
        quantySawdust(max:1000.0)
        }  
}
